<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once(APPPATH.'controllers/Abstractfront.php');
class Home extends Abstractfront {

	public function  __construct()
    {
        parent::__construct();
    }

	public function index()
	{	
		$user = $this->getUser();
		$data['nav'] = 'index';
		$data['username'] = $user['username'];
		$this->load->view('main.php',$data);
	}

	public function detail() 
	{	
		$user = $this->getUser();
		$data['username'] = $user['username'];
		$data['nav'] = 'detail';
		$this->load->view('detail',$data);
	}

	public function about() 
	{	
		$user = $this->getUser();
		$data['username'] = $user['username'];
		$data['nav'] = 'about';
		$this->load->view('about',$data);
	}

	public function detail2()
	{	
		$user = $this->getUser();
		$data['username'] = $user['username'];
		$data['nav'] = 'detail2';
		$this->load->view('detail-secondary', $data);
	}

	public function detail3() 
	{
		$user = $this->getUser();
		$data['username'] = $user['username'];
		$data['nav'] = 'detail3';
		$this->load->view('detail-three', $data);
	}
}
?>
